import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/setting',
    name: 'setting',
    meta: {
      title: '设置页面'
    },
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: 'account',
        name: 'setting_account',
        meta: {
          title: '个人设置'
        },
        component: () => import('@/views/setting/account.vue')
      },
      {
        path: 'system',
        name: 'setting_system',
        meta: {
          title: '系统设置'
        },
        component: () => import('@/views/setting/system.vue')
      }
    ]
  }
]

export default routes
